using System;

namespace Me.Prettyprint.Cassandra.Service.Clock
{
    /// <summary>
    /// A couple of important notes about clocks in .Net. DateTime.Now
    /// has a resolution of 15ms, so it's not possible to get microsecond
    /// resolution. In Java, there's System.nanoTime, which is more
    /// accurate than what .Net provides.
    /// </summary>
	[Serializable]
	public abstract class AbstractClockResolution
	{
		virtual protected internal long SystemMilliseconds
		{
			get
			{
				return System.DateTime.Now.Ticks / TimeSpan.TicksPerMillisecond;
			}
		}
	}
}